import sys
from PyQt5.QtWidgets import QApplication,QMainWindow
## 文件  从UI_mainwindow文件导入所有类
from Ui_mainwindow import *

class MyMainWindow(QMainWindow, Ui_MainWindow):
    def __init__(self, parent=None):
        super(MyMainWindow, self).__init__(parent)
        self.setupUi(self)
        
if __name__ == "__main__":
    app=QApplication(sys.argv)
    myWin=MyMainWindow()
    myWin.show()
    sys.exit(app.exec_())
